package com.qf.base.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.qf.common.annotation.Excel;
import com.qf.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * --- ONE PIECE ---
 *
 * @author yangjiangcheng
 * @date 2025/9/1
 * @desc
 */
@Data
public class BaseCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ExcelIgnore // 新增注解
    private Long id;

    @ExcelProperty(value = "客户编号", index = 0)
    @ColumnWidth(20)
    private String customerNumber;

    @ExcelProperty(value = "客户名称", index = 1)
    @ColumnWidth(20)
    private String customerName;

    @ExcelProperty(value = "所属行业", index = 2)
    @ColumnWidth(15)
    private String industry;

    @ExcelProperty(value = "状态", index = 3)
    @ColumnWidth(10)
    private String status;

    @ExcelProperty(value = "联系人姓名", index = 4)
    @ColumnWidth(15)
    private String contactName;

    @ExcelProperty(value = "手机号码", index = 5)
    @ColumnWidth(20)
    private String phoneNumber;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("customerNumber", getCustomerNumber())
                .append("customerName", getCustomerName())
                .append("industry", getIndustry())
                .append("status", getStatus())
                .append("contactName", getContactName())
                .append("phoneNumber", getPhoneNumber())
                .toString();
    }

}
